<?
require("config.php");

$show_backnav = "product_menu";
$location_status .= "| Delete";

$menuname = array(
	"Info",
	"Pictures",
	"Color",
	"Size",
	"Specification",
	"Features",
	"Accessories",
	"Packaging",
);

$menutarget = array(
	"delete",
	"delete_pictures",
	"delete_color",
	"delete_size",
	"delete_specification",
	"delete_features",
	"delete_accessories",
	"delete_packaging",
);

$menutype = 2;

if (NULL!=$action){

   $Query = "delete from $table where id=$id Limit 1";

   myQuery($Query);


   header("location:" . $rela_path . "share/msg.php?v=3");

   exit();

}


if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");
  
}


$Query = "select 
item01_packaging_text, 
item02_packaging_text, 
item03_packaging_text, 
item04_packaging_text, 
item05_packaging_text, 
item06_packaging_text, 
item07_packaging_text, 
item08_packaging_text, 
item09_packaging_text, 
item10_packaging_text 
from pro_basic where id=$id Limit 1";
$r = myQuery($Query);

$Item01= $r[0][0];
$Item02= $r[0][1];
$Item03= $r[0][2];
$Item04= $r[0][3];
$Item05= $r[0][4];
$Item06= $r[0][5];
$Item07= $r[0][6];
$Item08= $r[0][7];
$Item09= $r[0][8];
$Item10= $r[0][9];

require($rela_path . "inc/header.php");

?>

<!--Content Start-->
<form action="" method="post" enctype="multipart/form-data" name="form1">  
<!--hidden filed-->
<input name="id" type="hidden" value="<?print($id)?>">
<input name="action" type="hidden" value="delete">


  <table width="95%" border="0" align="center">
                      <tr> 
                        
      <td>&nbsp; </td>
                      </tr>
                      <tr> 
                        
      <td><strong>Are you sure to delete this product ?</strong> 
	  
	  <input type="Submit" class="button" name="Button" value="   Yes   "> 
        <input type="button" class="button" name="Submit2" value="   No   " onClick="Redirect('product_menu.php',1);"> 


        <br>
        <br>
        <table border="0" cellspacing="0" cellpadding="2">
          <tr> 
           <td>1. </td>
            <td><?print($Item01)?></td>
          </tr>
          <tr> 
            <td>2. </td>
            <td><?print($Item02)?></td>
          </tr>
          <tr> 
            <td>3.</td>
            <td><?print($Item03)?></td>
          </tr>
          <tr> 
            <td>4.</td>
            <td><?print($Item04)?></td>
          </tr>
          <tr> 
            <td>5.</td>
            <td><?print($Item05)?></td>
          </tr>
          <tr> 
            <td>6.</td>
            <td><?print($Item06)?></td>
          </tr>
          <tr> 
            <td>7.</td>
            <td><?print($Item07)?></td>
          </tr>
          <tr> 
            <td>8.</td>
            <td><?print($Item08)?></td>
          </tr>
          <tr> 
            <td>9.</td>
            <td><?print($Item09)?></td>
          </tr>
          <tr> 
            <td>10.</td>
            <td><?print($Item10)?></td>
          </tr>
        </table>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p></td>
                      </tr>
                    </table>
                    </form>
            <!--Content End-->
            <?
require($rela_path . "inc/footer.php");
?>
        